package zzu.mxd.answer.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import zzu.mxd.answer.entity.Recording;
import zzu.mxd.answer.mapper.RecordingMapper;
import zzu.mxd.answer.service.IRecordingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import zzu.mxd.answer.vo.RecordingVO;

import java.util.List;

/**
 * <p>
 * 答题记录表 服务实现类
 * </p>
 *
 * @author mxd
 * @since 2018-11-08
 */
@Service
public class RecordingServiceImpl extends ServiceImpl<RecordingMapper, Recording> implements IRecordingService {

    @Autowired
    private RecordingMapper recordingMapper;
    @Override
    public Integer selectCount(long subjectId, String studentId1) {
        return recordingMapper.selectCount(subjectId,studentId1);
    }

    @Override
    public List<RecordingVO> selectBySubjectId(long subjectId, String studentId) {
        return recordingMapper.selectBySubjectId(subjectId,studentId);
    }
}
